import Vue from 'vue'
import App from './App.vue'
import router from "./router"
import store from './store'
import Toast from "components/common/toast";
import LazyLoad from 'vue-lazyload'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'

Vue.config.productionTip = false

Vue.prototype.$bus=new Vue()//给vue原型链上新增一个bus属性，存储数据

Vue.use(Toast);
Vue.use(ElementUI);

Vue.use(LazyLoad,{
  loading:require('assets/img/common/placeholder.png')
})//懒加载
new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
